﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000DC1 RID: 3521
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RaidData : IMessage<RaidData>, IMessage, IEquatable<RaidData>, IDeepCloneable<RaidData>, IBufferMessage
	{
		// Token: 0x17002CB4 RID: 11444
		// (get) Token: 0x06009E0A RID: 40458 RVA: 0x001A6945 File Offset: 0x001A4B45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RaidData> Parser
		{
			get
			{
				return RaidData._parser;
			}
		}

		// Token: 0x17002CB5 RID: 11445
		// (get) Token: 0x06009E0B RID: 40459 RVA: 0x001A694C File Offset: 0x001A4B4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RaidDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002CB6 RID: 11446
		// (get) Token: 0x06009E0C RID: 40460 RVA: 0x001A695E File Offset: 0x001A4B5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RaidData.Descriptor;
			}
		}

		// Token: 0x06009E0D RID: 40461 RVA: 0x001A6965 File Offset: 0x001A4B65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidData()
		{
		}

		// Token: 0x06009E0E RID: 40462 RVA: 0x001A6978 File Offset: 0x001A4B78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidData(RaidData other) : this()
		{
			this.worldLevel_ = other.worldLevel_;
			this.raidId_ = other.raidId_;
			this.raidTargetInfo_ = other.raidTargetInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009E0F RID: 40463 RVA: 0x001A69C5 File Offset: 0x001A4BC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RaidData Clone()
		{
			return new RaidData(this);
		}

		// Token: 0x17002CB7 RID: 11447
		// (get) Token: 0x06009E10 RID: 40464 RVA: 0x001A69CD File Offset: 0x001A4BCD
		// (set) Token: 0x06009E11 RID: 40465 RVA: 0x001A69D5 File Offset: 0x001A4BD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17002CB8 RID: 11448
		// (get) Token: 0x06009E12 RID: 40466 RVA: 0x001A69DE File Offset: 0x001A4BDE
		// (set) Token: 0x06009E13 RID: 40467 RVA: 0x001A69E6 File Offset: 0x001A4BE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RaidId
		{
			get
			{
				return this.raidId_;
			}
			set
			{
				this.raidId_ = value;
			}
		}

		// Token: 0x17002CB9 RID: 11449
		// (get) Token: 0x06009E14 RID: 40468 RVA: 0x001A69EF File Offset: 0x001A4BEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RaidTargetInfo> RaidTargetInfo
		{
			get
			{
				return this.raidTargetInfo_;
			}
		}

		// Token: 0x06009E15 RID: 40469 RVA: 0x001A69F7 File Offset: 0x001A4BF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RaidData);
		}

		// Token: 0x06009E16 RID: 40470 RVA: 0x001A6A08 File Offset: 0x001A4C08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RaidData other)
		{
			return other != null && (other == this || (this.WorldLevel == other.WorldLevel && this.RaidId == other.RaidId && this.raidTargetInfo_.Equals(other.raidTargetInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009E17 RID: 40471 RVA: 0x001A6A68 File Offset: 0x001A4C68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.RaidId != 0U)
			{
				num ^= this.RaidId.GetHashCode();
			}
			num ^= this.raidTargetInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009E18 RID: 40472 RVA: 0x001A6ACE File Offset: 0x001A4CCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009E19 RID: 40473 RVA: 0x001A6AD6 File Offset: 0x001A4CD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009E1A RID: 40474 RVA: 0x001A6AE0 File Offset: 0x001A4CE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RaidId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.RaidId);
			}
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.WorldLevel);
			}
			this.raidTargetInfo_.WriteTo(ref output, RaidData._repeated_raidTargetInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009E1B RID: 40475 RVA: 0x001A6B4C File Offset: 0x001A4D4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.RaidId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RaidId);
			}
			num += this.raidTargetInfo_.CalculateSize(RaidData._repeated_raidTargetInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009E1C RID: 40476 RVA: 0x001A6BB8 File Offset: 0x001A4DB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RaidData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.RaidId != 0U)
			{
				this.RaidId = other.RaidId;
			}
			this.raidTargetInfo_.Add(other.raidTargetInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009E1D RID: 40477 RVA: 0x001A6C19 File Offset: 0x001A4E19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009E1E RID: 40478 RVA: 0x001A6C24 File Offset: 0x001A4E24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 32U)
					{
						if (num != 74U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.raidTargetInfo_.AddEntriesFrom(ref input, RaidData._repeated_raidTargetInfo_codec);
						}
					}
					else
					{
						this.WorldLevel = input.ReadUInt32();
					}
				}
				else
				{
					this.RaidId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003CF1 RID: 15601
		private static readonly MessageParser<RaidData> _parser = new MessageParser<RaidData>(() => new RaidData());

		// Token: 0x04003CF2 RID: 15602
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003CF3 RID: 15603
		public const int WorldLevelFieldNumber = 4;

		// Token: 0x04003CF4 RID: 15604
		private uint worldLevel_;

		// Token: 0x04003CF5 RID: 15605
		public const int RaidIdFieldNumber = 2;

		// Token: 0x04003CF6 RID: 15606
		private uint raidId_;

		// Token: 0x04003CF7 RID: 15607
		public const int RaidTargetInfoFieldNumber = 9;

		// Token: 0x04003CF8 RID: 15608
		private static readonly FieldCodec<RaidTargetInfo> _repeated_raidTargetInfo_codec = FieldCodec.ForMessage<RaidTargetInfo>(74U, EggLink.DanhengServer.Proto.RaidTargetInfo.Parser);

		// Token: 0x04003CF9 RID: 15609
		private readonly RepeatedField<RaidTargetInfo> raidTargetInfo_ = new RepeatedField<RaidTargetInfo>();
	}
}
